import * as types from './mutation_types'
export default {
  //改变当前主题id
  changeCurrentTitle:({ commit },title) => {
    console.log(title)
    commit(types.CONTENT_TITLTE,title)
  },
  changeUnReadMessageNumber:({commit},number)=>{
    commit(types.UNREAD_MESSAGE_NUMBER,number)
  },
  changeChatObject:({commit},chatObject)=>{
    commit(types.CHAT_OBJECT,chatObject)
  },
  changeUserList:({commit},chatList)=>{
    commit(types.USER_LIST,chatList)
  },
  changePersonInfor:({commit},personInfor)=>{
    commit(types.PERSON_INFOR,personInfor)
  },
  changeUserListFlag:({commit},flag)=>{
    commit(types.USERLIST_FLAG,flag)
  },
  changeChatContent:({commit},chatItem)=>{
    commit(types.CHAT_CONTENT,chatItem)
  }
}
